package com.lin.springbootcontendnegotiation.controller;

import com.lin.springbootcontendnegotiation.po.User;
import com.lin.springbootcontendnegotiation.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping(value = "/detail")
    public User getUser() {
        return userService.getUser();
    }
}
